<!DOCTYPE html>
<html >
	<head>
		<meta charset="utf-8" />
		<script type="text/javascript" src="../js/angular.js" ></script>
		<title></title>
	</head>

	<body ng-app="app" >
		<div ng-controller="ctrl" >
			{{data|orderBy:'id':true}}
			<hr>
			{{data|filter:'王':true}}//完全匹配
		</div>
		<script>
			var app=angular.module("app",[]);
			app.controller("ctrl",["$scope",function($scope){
                $scope.data=[
                    {id:1,name:"张三",url:"http://baidu.com"},
					{id:2,name:"李四",url:"http://163.com"},
					{id:3,name:"王五",url:"http://163.com"},
					{id:4,name:"周六",url:"http://163.com"}
					];
			}]);
		</script>
	</body>
</html>
